package com.example.wwj.mapper;

import com.example.wwj.pojo.Curriculum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CurriculumMapper {
    List<Curriculum> findAll();

    List<Curriculum> findCurriculumById(@Param("teacher_id") Integer teacher_id);

    List<Curriculum> selectPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("class_id") Integer class_id, @Param("grade_id") Integer grade_id, @Param("teacher_name") String teacher_name);

    Integer selectTotal(@Param("class_id") Integer class_id, @Param("grade_id") Integer grade_id, @Param("teacher_name") String teacher_name);

    int deleteCurriculumByIds(Map<String, Object> map);
}
